package com.wxzz.elearing.livetelecast.entity;

import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "LivePushCallback对象", description = "华为云直播推流回调类")
public class LivePushCallbackEntity extends BaseEntity {

    @ApiModelProperty(value = "推流域名")
    private String domain;

    @ApiModelProperty(value = "应用名称")
    private String app;

    @ApiModelProperty(value = "流名称")
    private String stream;

    @ApiModelProperty(value = "推流参数")
    private String userArgs;

    @ApiModelProperty(value = "推流客户端IP")
    private String clientIp;

    @ApiModelProperty(value = "接受流的节点IP")
    private String nodeIp;

    @ApiModelProperty(value = "推流Unix时间戳，一次推流活动会产生相同时间戳的推流和断流消息")
    private String publishTimestamp;

    @ApiModelProperty(value = "直播推流和断流标识。\n" +
            "取值为：\n" +
            "PUBLISH：开播。\n" +
            "PUBLISH_DONE：停播。")
    private String event;

}
